import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as Icons from "@element-plus/icons-vue"; // 引入所有图标，并命名为 Icons
import Particles from "@tsparticles/vue3";
import { loadFull } from "tsparticles";
const app = createApp(App);
for (let i in Icons) {
  app.component(i, Icons[i]);
}
app
  .use(ElementPlus)
  .use(Particles, {
    init: async (engine) => {
      await loadFull(engine); // you can load the full tsParticles library from "tsparticles" if you need it
      // loadSlim 轻量级的
      // await loadSlim(engine) // or you can load the slim version from "tsparticles-slim" if don't need Shapes or Animations
    },
  })
  .use(store)
  .use(router)
  .mount("#app");
